package atest.reopen.session.nestedResult;

import java.util.List;

import org.apache.ibatis.executor.resultset.ResultSetHandler;
import org.apache.ibatis.session.RowBounds;


public interface NestedMapper {
	public List<Order> selectOrderByIds(List<Integer> ids);
	
	/**
	 * @param ids
	 * @param handler
	 * 		自定义handler
	 * @return
	 */
	public List<Order> selectOrderByIds(List<Integer> ids, RowBounds rowBounds, ResultSetHandler handler);
	
	/**
	 * Nested Select内嵌另外一个查询N+1问题测试
	 * @param id
	 * @return
	 */
	public OrderItem nestedSelect(int id);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public OrderItem nestedResult(int id);
	
	/**
	 * 参数为对象类型
	 * @param orderItem
	 * @return
	 */
	public OrderItem nestedResultByOrderItem(OrderItem orderItem);
}
